﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace DotNetTracer
{
    public partial class FileInputControl : UserControl, IWizardPart
    {
        public FileInputControl()
        {
            InitializeComponent();
        }

        private void grpBox_DragDrop(object sender, DragEventArgs e)
        {
            MessageBox.Show(e.Data.ToString());
                
        }

        private void tbFileName_DragDrop(object sender, DragEventArgs e)
        {
            MessageBox.Show(e.Data.ToString());
        }

        private void btnChooseFile_Click(object sender, EventArgs e)
        {
            openFileDialog1.CheckFileExists = true;
            openFileDialog1.Filter = "Exe File(.exe)|*.exe|Dll File (*.dll)|*.*";

            openFileDialog1.DefaultExt = ".exe";

            if (openFileDialog1.ShowDialog() == DialogResult.OK)
            {
                tbFileName.Text = openFileDialog1.FileName;
            }

               
        }

        public bool TryGetData(out object output)
        {
            output = null;
            return true;
        }
        
        public void SetData(object input)
        {
            
        }

        public Control GetControl()
        {
            return this;
        }

    }
}
